package booksystem.dao.impl;

import booksystem.dao.AdminDao;
import booksystem.dao.BaseDao;
import booksystem.entity.Admin;


public class AdminDaoImpl extends BaseDao<Admin> implements AdminDao {
    @Override
    public Admin adminLogin(String username, String password) {
        String sql = "select * from admin where username=? and password=?";
        return getBean(Admin.class, sql, username, password);
    }

}
